<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><?php echo html::chars(__($title)) ?></title>

	<style type="text/css">
    .page-wrap {
        width: 900px;
        margin: -10px auto;        
    }
    body {
    	background: #222;
    	color: #fff;
    }    
	</style>
    <?php
    echo html_Core::stylesheet(array
    ( "media/js/css/redmond/jquery-ui-1.8.13.custom.css",
      "media/css/theme.css"
    ), 'screen', FALSE);
    echo html_Core::script(array
    (
        "http://maps.google.com/maps/api/js?sensor=true",
    	"media/js/js/jquery-1.5.1.min.js",
    	"media/js/js/jquery-ui-1.8.13.custom.min.js",
    	"media/js/js/jquery.tablesorter.min.js",
    	"media/js/myjquery.js",
       	"media/js/redbusQuery.js",
        "media/js/bustrack.js",    
    ), FALSE);
    ?> 
    <script type="text/javascript">
	    $(function(){
	    	console.debug(BusTrack);
	    	$( "#messageBox" ).dialog({ modal: true, draggable: false, resizable: false, position: 'center', title: 'Loading..', height: 0, hide: 'fade', open: 'fade', autoOpen: false});	    	
	    	//revealLoadingBlocker();	
	    });
	    //$(function() {
	    //    $("#busProgressBar").progressBar({ barImage: '../media/images/progress_bar_bus.gif', showText: false} );
	   	// });
	   	
	   	
	   	
	   	function revealLoadingBlocker() {
		   	$('#pageLoadingBlocker').animate({left: '0'}, 1000, revealLoadingContent );
	   	}

	   	function revealLoadingContent() {
		   	$('#pageLoadingContent').animate({left: '0'}, 5000);
	   	}
	   	
    </script>            
</head>
<body>
	<div class="ui-widget-content ui-corner-all page-wrap">
    	<div class="ui-widget pageTitle">
    	  <?php //echo html::chars(__($title)) ?>
        </div>
        <div class="ui-widget content" id="pageContent">        
	      <?php echo $content; ?>       
        </div>    
        <div id="messageBox"></div>    
        <div id="busProgressBar"></div>                                 	
  	</div>
  	<div class="page-wrap">
    	<p class="copyright">
    		<?php echo __('Rendered in {execution_time} seconds, using {memory_usage} of memory')?><br />
    		Copyright ©2011 Bustracker
    	</p>
  	</div>	  
    <div class="ui-widget loadingBlocker" id="pageLoadingBlocker">
    	<div class="loadingContent" id="pageLoadingContent"> Loading..
    	</div>                  	    	    
    </div>
</body>

</html>